package edu.gatech.volt2.drdoommgt.domain;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum LabType {
	// The standard titles
	VACCINE("Vaccine"), LAB("Labs"), TRETMENT("Treatment");
	
	
	private static final Map<String,LabType> lookup = new HashMap<String,LabType>();

	static {
		for(LabType s : EnumSet.allOf(LabType.class))
			lookup.put(s.getText(), s);
	}

	private String text;

	private LabType(String text) {
		this.text = text;
	}

	public String getText() { return this.text; }

	public static LabType get(int code) { 
		return lookup.get(code); 
	}
}
